package com.car.dal.dao.cj;

import java.util.List;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.ChouJiang;
import com.car.util.Page;

public class ChouJiangDaoImpl extends IbatisCommonDao<ChouJiang, Long> implements ChouJiangDao {

	public GridObj GetList(ChouJiang cj, PageObj pageObj) {
		OrderObj order = new OrderObj();
		order.setDir("desc");
		order.setSort("create_time");
		// TODO Auto-generated method stub
		return super.findByPage(cj, pageObj, order);
	}
	
	public List<ChouJiang> getCjByName(ChouJiang cj) {
		return this.queryForEntityList(ChouJiang.class, "getCjByName", cj);
	}
	
}
